package com.guomei.constans;

import lombok.Getter;

/**
 * 统一状态码枚举
 * 可根据业务扩展更多状态码
 */
@Getter
public enum MenuCode {
    /**
     * 成功
     */
    SUCCESS(1, "菜单目录"),

    /**
     * 业务失败
     */
    FAIL(2, "主菜单"),

    /**
     * 系统异常
     */
    ERROR(3, "按钮");


    private final int code;
    private final String msg;

    MenuCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
